<template>
  <div>
    <table>
      <tr>
        <td>账号</td>
        <td><input type="text" v-model="user.uname" ></td>
      </tr>
      <tr>
        <td>密码</td>
        <td><input type="text" v-model="user.password"  ></td>
      </tr>
      <tr>
        <td><button @click="sendUser">登录</button></td>
        <td></td>
      </tr>
    </table>
    
  </div>
</template>

<script>
 export default{
    name:"L",
    data(){
      return{
        user:{
           uname:"",
           password:""
        }
      }
    },
    methods:{
      sendUser(){
          this.$emit("sUser",this.user);
      }
    }
  }
</script>

<style>
</style>
